<?
require("config.php");

$location_status .= "| Preview Email";
$show_backnav = "newsletter_menu";
$menuname = NULL;
$menutarget = NULL;



  if (!checkRecord($table,$id)){

	header("location:" . $rela_path . "share/msg.php?v=9002");

	exit();
  
  }



$Query = "SELECT 
code,
date,
subject, 
details 
FROM $table WHERE id=$id LIMIT 1";

$r=myQuery($Query);

$Code=$r[0][0];
$Date=$r[0][1];
$Subject=$r[0][2];
$Details=$r[0][3];

if (!$header_file) $header_file = "inc/header.php";
if (!$footer_file) $footer_file = "inc/footer.php";

require($rela_path . $header_file);

?>
<form action="sendmail.php" method="post" enctype="multipart/form-data" name="form1">
<input name="action" type="hidden" value="delete">
<input name="id" type="hidden" value="<?print($id)?>">




<table width="95%" border="0" align="center">
  <tr> 
      <td valign="top"> <p>
          <br>
          <br>
        <table border="0" cellspacing="5" cellpadding="1">
          <tr> 
            <td class="tdheader">Date :</td>
            <td><?print($Date)?></td>
          </tr>
          <tr> 
            <td class="tdheader">Heading : </td>
            <td><?print($Subject)?></td>
          </tr>
          <tr>
            <td class="tdheader">Details :</td>
            <td><?print($Details)?></td>
          </tr>
        </table>
        <p>&nbsp;
        <table width="500" align="center" cellpadding="1" cellspacing="1" bgcolor="#000000">
          <tr>
            <td bgcolor="#F5F8FD"><table width="90%" align="center">
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr> 
                  <td><strong>From:</strong></td>
                  <td>&nbsp;</td>
                </tr>
                <tr> 
                  <td>Sender :</td>
                  <td><input name="From_name" type="text" class="text" id="From_name" size="25"></td>
                </tr>
                <tr> 
                  <td>Sender Email:</td>
                  <td><input name="From_email" type="text" class="text" id="From_email" size="40"></td>
                </tr>
              </table>
              <table width="90%" align="center" cellpadding="1">
                <tr> 
                  <td>&nbsp;</td>
                </tr>
                <tr> 
                  <td><strong>Send To:</strong></td>
                </tr>
                <tr> 
                  <td><input name="list1" type="checkbox" id="list" value="true">
                    customer list</td>
                </tr>
                <tr> 
                  <td><input name="list2" type="checkbox" id="list" value="true">
                    subscription list</td>
                </tr>
                <tr> 
                  <td><input name="id" type="hidden" id="id" value="<?echo $id?>"></td>
                </tr>
                <tr> 
                  <td><div align="right"><a href="preview.php"> 
                      <input name="Submit" type="image" value="Submit" src="../../images/bt_sendmail.gif" width="116" height="30">
                      </a></div></td>
                </tr>
                <tr> 
                  <td>&nbsp;</td>
                </tr>
              </table></td>
          </tr>
        </table>
        <p>&nbsp; 
        <p align="center">&nbsp;</td>

  </tr>
</table>
<br>
<br>
<br>


</form>
<?
require($rela_path . $footer_file);
?>
